From Gerhard:
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 12 Jul 2013 22:58:40 +0000 (22:58 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 12 Jul 2013 22:58:40 +0000 (22:58 +0000)
commit9ebd7fde3fcbe905f00007d5b6ce90aa7790939e
tree301496538fe70eacc0d14c87fc5327102dd891c2
parentc7107d4d664bf0890a27ee904c833fd278c3c720
From Gerhard:
* gtm.cc MSVC compiler limit
Converted "else if" structure to array with the following perl snippet, so not hand coded
 perl -ne 'BEGIN{$i=-1; $n=0} $t=0; if(/\bn\s*\<\s*(\d+)/){$n2=$1;} if(/indatum\s*=\s*(-?\d+).*\/\*\s*(.*)\*\//){$i=$1;$c=" : $2"; $t=1;}elsif(/\{\s*\}/){$i=-1;$c=""; $t=1;} if($t){print " ";while($n<$n2){print " $i,";$n++;}print " // < $n2$c\n"}' gtm.c.snippet
* QString toAscii() removed in Qt5.1
Replaced use of toAscii() with toLatin1() so Qt5.1 can be used with GPSBabel (commandline, GUI not tested)
Note that gtm.cc file contains "datum" patch too.
gpsbabel/csv_util.cc
gpsbabel/gdb.cc
gpsbabel/gtm.cc
gpsbabel/util.cc
gpsbabel/xmlgeneric.cc